

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>Troubleshooting Ceph on Windows &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/css/custom.css" type="text/css" />

  
  
    <link rel="shortcut icon" href="../../_static/favicon.ico"/>
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
        <script src="../../_static/jquery.js"></script>
        <script src="../../_static/underscore.js"></script>
        <script src="../../_static/doctools.js"></script>
    
    <script type="text/javascript" src="../../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../../genindex/" />
    <link rel="search" title="Search" href="../../search/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../" class="icon icon-home"></a> &raquo;</li>
        
      <li>Troubleshooting Ceph on Windows</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../../_sources/install/windows-troubleshooting.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../../">
          

          
            
            <img src="../../_static/logo.png" class="logo" alt="Logo"/>
          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul>
<li class="toctree-l1"><a class="reference internal" href="../../start/intro/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../cephadm/">Cephadm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../rados/">Ceph 存储集群</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../cephfs/">Ceph 文件系统</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../jaegertracing/">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <div class="section" id="troubleshooting-ceph-on-windows">
<h1>Troubleshooting Ceph on Windows<a class="headerlink" href="#troubleshooting-ceph-on-windows" title="Permalink to this headline">¶</a></h1>
<div class="section" id="msi-installer">
<h2>MSI installer<a class="headerlink" href="#msi-installer" title="Permalink to this headline">¶</a></h2>
<p>The MSI source code can be consulted here:
<a class="reference external" href="https://github.com/cloudbase/ceph-windows-installer">https://github.com/cloudbase/ceph-windows-installer</a></p>
<p>The following command can be used to generate MSI logs</p>
<div class="highlight-PowerShell notranslate"><div class="highlight"><pre><span></span><span class="n">msiexec</span><span class="p">.</span><span class="n">exe</span> <span class="p">/</span><span class="n">i</span> <span class="nv">$msi_full_path</span> <span class="p">/</span><span class="n">l</span><span class="p">*</span><span class="n">v</span><span class="p">!</span> <span class="nv">$log_file</span>
</pre></div>
</div>
<p>WNBD driver installation failures will be logged here: <code class="docutils literal notranslate"><span class="pre">C:\Windows\inf\setupapi.dev.log</span></code>.
A server reboot is required after uninstalling the driver, otherwise subsequent
install attempts may fail.</p>
</div>
<div class="section" id="wnbd">
<h2>Wnbd<a class="headerlink" href="#wnbd" title="Permalink to this headline">¶</a></h2>
<p>For <code class="docutils literal notranslate"><span class="pre">WNBD</span></code> troubleshooting, please check this page: <a class="reference external" href="https://github.com/cloudbase/wnbd#troubleshooting">https://github.com/cloudbase/wnbd#troubleshooting</a></p>
</div>
<div class="section" id="privileges">
<h2>Privileges<a class="headerlink" href="#privileges" title="Permalink to this headline">¶</a></h2>
<p>Most <code class="docutils literal notranslate"><span class="pre">rbd-wnbd</span></code> and <code class="docutils literal notranslate"><span class="pre">rbd</span> <span class="pre">device</span></code> commands require privileged rights. Make
sure to use an elevated PowerShell or CMD command prompt.</p>
</div>
<div class="section" id="crash-dumps">
<h2>Crash dumps<a class="headerlink" href="#crash-dumps" title="Permalink to this headline">¶</a></h2>
<p>Userspace crash dumps can be placed at a configurable location and enabled for all
applications or just predefined ones, as outlined here:
<a class="reference external" href="https://docs.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps">https://docs.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps</a>.</p>
<p>Whenever a Windows application crashes, an event will be submitted to the <code class="docutils literal notranslate"><span class="pre">Application</span></code>
Windows Event Log, having Event ID 1000. The entry will also include the process id,
the faulting module name and path as well as the exception code.</p>
<p>Please note that in order to analyze crash dumps, the debug symbols are required.
We’re currently buidling Ceph using <code class="docutils literal notranslate"><span class="pre">MinGW</span></code>, so by default <code class="docutils literal notranslate"><span class="pre">DWARF</span></code> symbols will
be embedded in the binaries. <code class="docutils literal notranslate"><span class="pre">windbg</span></code> does not support such symbols but <code class="docutils literal notranslate"><span class="pre">gdb</span></code>
can be used.</p>
<p><code class="docutils literal notranslate"><span class="pre">gdb</span></code> can debug running Windows processes but it cannot open Windows minidumps.
The following <code class="docutils literal notranslate"><span class="pre">gdb</span></code> fork may be used until this functionality is merged upstream:
<a class="reference external" href="https://github.com/ssbssa/gdb/releases">https://github.com/ssbssa/gdb/releases</a>. As an alternative, <code class="docutils literal notranslate"><span class="pre">DWARF</span></code> symbols
can be converted using <code class="docutils literal notranslate"><span class="pre">cv2pdb</span></code> but be aware that this tool has limited C++
support.</p>
</div>
<div class="section" id="ceph-tool">
<h2>ceph tool<a class="headerlink" href="#ceph-tool" title="Permalink to this headline">¶</a></h2>
<p>The <code class="docutils literal notranslate"><span class="pre">ceph</span></code> Python tool can’t be used on Windows natively yet. With minor
changes it may run, but the main issue is that Python doesn’t currently allow
using <code class="docutils literal notranslate"><span class="pre">AF_UNIX</span></code> on Windows: <a class="reference external" href="https://bugs.python.org/issue33408">https://bugs.python.org/issue33408</a></p>
<p>As an alternative, the <code class="docutils literal notranslate"><span class="pre">ceph</span></code> tool can be used through Windows Subsystem
for Linux (WSL). For example, running Windows RBD daemons may be contacted by
using:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>ceph daemon /mnt/c/ProgramData/ceph/out/ceph-client.admin.61436.1209215304.asok <span class="nb">help</span>
</pre></div>
</div>
</div>
<div class="section" id="io-counters">
<h2>IO counters<a class="headerlink" href="#io-counters" title="Permalink to this headline">¶</a></h2>
<p>Along with the standard RBD perf counters, the <code class="docutils literal notranslate"><span class="pre">libwnbd</span></code> IO counters may be
retrieved using:</p>
<div class="highlight-PowerShell notranslate"><div class="highlight"><pre><span></span><span class="n">rbd-wnbd</span> <span class="n">stats</span> <span class="nv">$imageName</span>
</pre></div>
</div>
<p>At the same time, WNBD driver counters can be fetched using:</p>
<div class="highlight-PowerShell notranslate"><div class="highlight"><pre><span></span><span class="n">wnbd-client</span> <span class="n">stats</span> <span class="nv">$mappingId</span>
</pre></div>
</div>
<p>Note that the <code class="docutils literal notranslate"><span class="pre">wnbd-client</span></code> mapping identifier will be the full RBD image spec
(the <code class="docutils literal notranslate"><span class="pre">device</span></code> column of the <code class="docutils literal notranslate"><span class="pre">rbd</span> <span class="pre">device</span> <span class="pre">list</span></code> output).</p>
</div>
<div class="section" id="missing-libraries">
<h2>Missing libraries<a class="headerlink" href="#missing-libraries" title="Permalink to this headline">¶</a></h2>
<p>The Ceph tools can silently exit with a -1073741515 return code if one of the
required DLLs is missing or unsupported.</p>
<p>The <a class="reference external" href="https://www.dependencywalker.com/">Dependency Walker</a> tool can be used to determine the missing library.</p>
</div>
</div>



           </div>
           
          </div>
          <footer>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).

    </p>
  </div> 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>